package com.xh.bussiness.teachbook.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author Pitt zhang
 * @since 2019/9/17
 */
@Data
@Accessors(chain = true)
@TableName("bk_teaching_book_number")
public class TeachingBookNumber extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.UUID)
    private String id;

    /**
     * 备课id
     */
    private String teachingBookId;
    /**
     * 龙文系统 小班id/一对一学生id
     */
    private String refId;

    /**
     * 1一对一，7,小班
     */
    private Integer type;

    /**
     * 龙文合同id
     */
    private String contractId;

    /**
     * 次数
     */
    private Integer num;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
